package cn.dhnep.demo.service.impl;

import cn.dhnep.demo.pojo.HelpCenter;
import cn.dhnep.demo.mapper.HelpCenterMapper;
import cn.dhnep.demo.service.HelpCenterService;
import cn.dhnep.demo.util.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author dhn
 * @since 2021-09-08
 */
@Service
public class HelpCenterServiceImpl extends ServiceImpl<HelpCenterMapper, HelpCenter> implements HelpCenterService {

    @Resource
    private HelpCenterMapper helpCenterMapper;

    @Override
    public List<HelpCenter> selectPageList(Page page) {
        return helpCenterMapper.selectPageList(page);
    }

    @Override
    public Integer selectPageCount(Page page) {
        return helpCenterMapper.selectPageCount(page);
    }
}
